﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;

namespace WcfServices.GRUDInterfaces
{
    [ServiceContract]
    interface IDelete
    {
        [OperationContract]
        [WebInvoke(Method = "DELETE", 
            BodyStyle = WebMessageBodyStyle.WrappedRequest, 
            ResponseFormat = WebMessageFormat.Json, 
            RequestFormat = WebMessageFormat.Json)]
         void Delete(int id);
    }
}
